]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
utils: Adjust trySpawnCommandLine() to gjs changes
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 23 Jun 2011 21:55:49 +0000 (23:55 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 23 Jun 2011 22:00:34 +0000 (00:00 +0200)
(out) arrays now no longer return the array length separately, adjust
to this change.

js/misc/util.js

index a876649b81e0dc8a93fd265e79dfa79080e15b52..e63876e990ee69df1dfa716f34804d6a0fa9772e 100644 (file)
@@ -85,10 +85,10 @@ function trySpawn(argv)
 // Runs @command_line in the background. If launching @command_line
 // fails, this will throw an error.
 function trySpawnCommandLine(command_line) {
-    let success, argc, argv;
+    let success, argv;
 
     try {
-        [success, argc, argv] = GLib.shell_parse_argv(command_line);
+        [success, argv] = GLib.shell_parse_argv(command_line);
     } catch (err) {
         // Replace "Error invoking GLib.shell_parse_argv: " with
         // something nicer